<ion-view view-title="订单">
  <ion-content>
    <ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
    <div class="list card">
      <div class="item item-divider">
        {{ (orders.length == 0 || orders == null) ? "暂无订单":"进行中订单" }}
      </div>
      <a  class="item item-avatar item-icon-right" ng-repeat="order in orders" href="#/tab/lists/order/{{order.orderid}}">
        <img ng-src="{{order.shopimg}}">
        <h2>{{order.shopname}}</h2>
        <p>{{order.state}}</p>
        <i class="icon ion-ios-arrow-right"></i>
      </a>
    </div>

    <!--<div class="list card">-->
    <!--<div class="item item-divider">-->
    <!--待评论订单-->
    <!--</div>-->
    <!--<a class="item item-avatar item-icon-right"  ng-repeat="completedOrder in completedOrders" href="#/tab/lists/order/{{completedOrder.id}}">-->
    <!--<img ng-src="{{completedOrder.img}}">-->
    <!--<h2>{{completedOrder.name}}</h2>-->
    <!--<p>{{completedOrder.state}}</p>-->
    <!--<i class="icon ion-ios-arrow-right"></i>-->
    <!--</a>-->
    <!--</div>-->
  </ion-content>
</ion-view>
